﻿
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
namespace GSQ.BusinessEntities
{
    public class RECIBOS_PAGOS_DETALLES : EntityBase
    {
        #region Primitive Properties

        [Key]
        [Editable(false)]
        [DisplayName("Id")]
        [DefaultValue(-1)]
        [DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText = "0")]
        [Required(ErrorMessage = " No puede ser nulo.")]
        [DataMember]
        public decimal ID
        {
            get { return _iD; }
            set
            {
                if (_iD != value)
                {
                    _iD = value;
                    OnPropertyChanged("ID");
                }
            }
        }
        private decimal _iD;

        [DisplayName("Id Factura")]
        [DefaultValue(-1)]
        [DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText = "0")]
        [Required(ErrorMessage = " No puede ser nulo.")]
        [Range(1, double.MaxValue, ErrorMessage = "No puede ser nulo.")]
        [DataMember]
        public decimal ID_FACTURA
        {
            get { return _iD_FACTURA; }
            set
            {
                if (_iD_FACTURA != value)
                {
                    _iD_FACTURA = value;
                    OnPropertyChanged("ID_FACTURA");
                }
            }
        }
        private decimal _iD_FACTURA;

        public decimal DESCUENTO
        {
            get { return this._dESCUENTO; }
            set { this._dESCUENTO = value; }
        }
        private decimal _dESCUENTO;

        public decimal X_DESCUENTO
        {
            get { return this._x_DESCUENTO; }
            set { this._x_DESCUENTO = value; }
        }
        private decimal _x_DESCUENTO;

        public decimal MONTO
        {
            get { return this._mONTO; }
            set { this._mONTO = value; }
        }
        private decimal _mONTO;
        #endregion

        #region Navigation Properties
        public FACTURAS FACTURAS
        {
            get { return this.FACTURAS; }
            set { this.FACTURAS = value; }
        }
        private FACTURAS _fACTURAS;
        #endregion
    }
}
